#include "cwxOpenCV.h"

using namespace cv;

namespace cwxOpenCV
{
    void convertIplToBMP(IplImage * in, wxBitmap &out)
    {
        int width = in->width;
        int height = in->height;

        unsigned char *rawData;
          cvGetRawData(in, &rawData);

        // convert data from raw image to wxImg

        wxImage pWxImg = wxImage(width, height, rawData, 1);

        out = wxBitmap(pWxImg);

    }
}
